package it.com.chen.malavolta.jingsen;


import java.io.IOException;

import javax.ejb.EJB;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import it.com.chen.malavolta.jingsen.entities.*;



/**
 * Servlet implementation class AddBook
 */

public class BookClient extends HttpServlet {
	private static final long serialVersionUID = 1L;

	@EJB
	private BookManagerRemote bm;
       
    public BookClient() {
        super();
        
    }

	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		String ISBN = request.getParameter("bookISBN");
		String name = request.getParameter("bookName");
		String author = request.getParameter("author");
		bm.add(ISBN,name, author);
	}
		
}
